package com.tianpengtech.admin.task;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang.StringUtils;

import com.tianpengtech.common.model.fair.Fair;
import com.tianpengtech.common.util.SendSmsMsg;

public class SendTaskSMSThread extends Thread {

	private List<Fair> fair = new ArrayList<Fair>();
	public SendTaskSMSThread(List<Fair> fair){
		this.fair = fair;
	}
	
	@Override
	public void run() {
		for (Fair each : fair) {
			if(each!=null && StringUtils.isNotEmpty(each.getStr(Fair.MOIBILE))){
//				System.out.println("发送短息给对应的网红："+each.getStr(Fair.MOIBILE));
				SendSmsMsg.sendNewTaskInfo(each.getStr(Fair.MOIBILE), SendSmsMsg.TEMPLATE_NEW_MISSION);
			}
		}
//		SendSmsMsg.sendNewTaskInfo("13641489216", SendSmsMsg.TEMPLATE_NEW_MISSION);
	}
}
